import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

App.mpType = 'app'

// 引用uview
import uView from "uview-ui";

// 全局挂载uView
Vue.use(uView);

const app = new Vue({
  ...App
})

// 引入请求封装，将app参数传递到配置中
require('./services/request.js')(app)

//API接口
import api from '@/api'
Vue.use(api, app)

// auth.js
import auth from './services/auth.js'
Vue.use(auth,app)

app.$mount()
